/*
 * Copyright (c) 2015 /3 /29
 * 	      6 :22 : 7
 *               By: wupeiji
 *               Q  Q:757671834
 * 	      It is not easy to meet each other in such a big world
 */

package spring.security.maven.serviceImp;

import org.springframework.stereotype.Repository;
import spring.security.maven.dao.Tb_goodsMapper;
import spring.security.maven.daomain.Tb_goods;
import spring.security.maven.daomain.Tb_goodsKey;
import spring.security.maven.service.GoodsService;
import spring.security.maven.util.Page;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wpj on 2015/3/29.
 * 作者：吴培基
 */
@Repository
public class GoodsServiceImpl implements GoodsService {
    @Resource
    private Tb_goodsMapper tb_goodsMapper;
    @Override
    public int deleteByPrimaryKey(Tb_goodsKey key) {
        return 0;
    }

    @Override
    public int insert(Tb_goods record) {
        return 0;
    }

    @Override
    public int insertSelective(Tb_goods record) {
        return 0;
    }

    @Override
    public Tb_goods selectByPrimaryKey(Tb_goodsKey key) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Tb_goods record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Tb_goods record) {
        return 0;
    }

    @Override
    public int findTotalNum() {
        return tb_goodsMapper.findTotalNum();
    }

    @Override
    public List<Tb_goods> findInfoByPage(Page page) {
        if(page==null){
            return null;
        }
        List<Tb_goods> listGoods=tb_goodsMapper.findInfoByPage(page);
        return listGoods;
    }
}
